﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200016D RID: 365
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuyRogueShopMiracleScRsp : IMessage<BuyRogueShopMiracleScRsp>, IMessage, IEquatable<BuyRogueShopMiracleScRsp>, IDeepCloneable<BuyRogueShopMiracleScRsp>, IBufferMessage
	{
		// Token: 0x170004DF RID: 1247
		// (get) Token: 0x06001084 RID: 4228 RVA: 0x00030619 File Offset: 0x0002E819
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuyRogueShopMiracleScRsp> Parser
		{
			get
			{
				return BuyRogueShopMiracleScRsp._parser;
			}
		}

		// Token: 0x170004E0 RID: 1248
		// (get) Token: 0x06001085 RID: 4229 RVA: 0x00030620 File Offset: 0x0002E820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuyRogueShopMiracleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004E1 RID: 1249
		// (get) Token: 0x06001086 RID: 4230 RVA: 0x00030632 File Offset: 0x0002E832
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuyRogueShopMiracleScRsp.Descriptor;
			}
		}

		// Token: 0x06001087 RID: 4231 RVA: 0x00030639 File Offset: 0x0002E839
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopMiracleScRsp()
		{
		}

		// Token: 0x06001088 RID: 4232 RVA: 0x00030644 File Offset: 0x0002E844
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopMiracleScRsp(BuyRogueShopMiracleScRsp other) : this()
		{
			this.gameMiracleInfo_ = ((other.gameMiracleInfo_ != null) ? other.gameMiracleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001089 RID: 4233 RVA: 0x00030690 File Offset: 0x0002E890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopMiracleScRsp Clone()
		{
			return new BuyRogueShopMiracleScRsp(this);
		}

		// Token: 0x170004E2 RID: 1250
		// (get) Token: 0x0600108A RID: 4234 RVA: 0x00030698 File Offset: 0x0002E898
		// (set) Token: 0x0600108B RID: 4235 RVA: 0x000306A0 File Offset: 0x0002E8A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EPHHHLOCLPK GameMiracleInfo
		{
			get
			{
				return this.gameMiracleInfo_;
			}
			set
			{
				this.gameMiracleInfo_ = value;
			}
		}

		// Token: 0x170004E3 RID: 1251
		// (get) Token: 0x0600108C RID: 4236 RVA: 0x000306A9 File Offset: 0x0002E8A9
		// (set) Token: 0x0600108D RID: 4237 RVA: 0x000306B1 File Offset: 0x0002E8B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600108E RID: 4238 RVA: 0x000306BA File Offset: 0x0002E8BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuyRogueShopMiracleScRsp);
		}

		// Token: 0x0600108F RID: 4239 RVA: 0x000306C8 File Offset: 0x0002E8C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuyRogueShopMiracleScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.GameMiracleInfo, other.GameMiracleInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001090 RID: 4240 RVA: 0x00030718 File Offset: 0x0002E918
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.gameMiracleInfo_ != null)
			{
				num ^= this.GameMiracleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001091 RID: 4241 RVA: 0x0003076D File Offset: 0x0002E96D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001092 RID: 4242 RVA: 0x00030775 File Offset: 0x0002E975
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001093 RID: 4243 RVA: 0x00030780 File Offset: 0x0002E980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.gameMiracleInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.GameMiracleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001094 RID: 4244 RVA: 0x000307D8 File Offset: 0x0002E9D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.gameMiracleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.GameMiracleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001095 RID: 4245 RVA: 0x00030830 File Offset: 0x0002EA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuyRogueShopMiracleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.gameMiracleInfo_ != null)
			{
				if (this.gameMiracleInfo_ == null)
				{
					this.GameMiracleInfo = new EPHHHLOCLPK();
				}
				this.GameMiracleInfo.MergeFrom(other.GameMiracleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001096 RID: 4246 RVA: 0x00030898 File Offset: 0x0002EA98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001097 RID: 4247 RVA: 0x000308A4 File Offset: 0x0002EAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 74U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.gameMiracleInfo_ == null)
						{
							this.GameMiracleInfo = new EPHHHLOCLPK();
						}
						input.ReadMessage(this.GameMiracleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040006F9 RID: 1785
		private static readonly MessageParser<BuyRogueShopMiracleScRsp> _parser = new MessageParser<BuyRogueShopMiracleScRsp>(() => new BuyRogueShopMiracleScRsp());

		// Token: 0x040006FA RID: 1786
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006FB RID: 1787
		public const int GameMiracleInfoFieldNumber = 9;

		// Token: 0x040006FC RID: 1788
		private EPHHHLOCLPK gameMiracleInfo_;

		// Token: 0x040006FD RID: 1789
		public const int RetcodeFieldNumber = 1;

		// Token: 0x040006FE RID: 1790
		private uint retcode_;
	}
}
